package com.mzz.behavior.middleclass.interpreter;

/**
 * 测试
 *
 * @author xushijian
 * @date 18/5/22 上午9:11
 */
public class Test {

    public static void main(String[] args) {

        //计算9+2-8的结果
        int result = new Minus().interpret(new Context(new Plus().interpret(new Context(9, 2)), 8));

        System.out.println("result is :");
        System.out.println(result);
    }
}
